<div class="col-sm-12 mt20">
	<div class="panel panel-default">
		<div class="panel-body">
			<div class="col-sm-3">
				<input type="text" class="form-control" placeholder="卡面号" ng-model="searchform.smart_card_no">
			</div>
			<div class="col-sm-2">
				<button class="btn btn-info search btn-block" ng-click="loadData()">立即搜索</button>
			</div>
		</div>

		<div class="panel-body">
			<table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
				<thead>
					<tr>
						<th class="text-center">卡面号/卡类型</th>
						<th class="text-center col-xs-3">押金</th>
						<th class="text-center">状态</th>
						<th class="text-center col-xs-3">有效期</th>
						<!-- <th class="col-md-1 text-center">结束时间</th> -->
						<th class="text-center col-xs-2">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-show="cardInfo.len > 0">
						<td class="text-center">
							{{cardInfo.smart_card_no}}
							<br />{{cardInfo.card_type_name}}
						</td>
						<td class="text-center">
							{{cardInfo.deposit}}元
							<button type="button" class="btn btn-info btn-xs" ng-click="updateDeposit(cardInfo)">修改</button>
							<br />上次修改时间：{{cardInfo.deposit_update_time}}
						</td>
						<td class="text-center">
							{{cardInfo.status==1?'使用中':'初始状态'}}
							<br /><button type="button" class="btn btn-info btn-xs" ng-click="updateStatus()">{{cardInfo.status==1?'停用':'启用'}}</button>
						</td>
						<td class="text-center">
							<span ng-show="cardInfo.period_start || cardInfo.period_end">{{cardInfo.period_start + ' ~ ' + cardInfo.period_end}}</span>
							<br /><button type="button" class="btn btn-info btn-xs" ng-click="updatePeriod()">设置</button>
						</td>
						<td class="text-center">
							<button type="button" class="btn btn-info btn-xs" ng-click="sellInfo(cardInfo)">消费明细</button>
							<button type="button" class="btn btn-info btn-xs" ng-click="updateCardPassword(cardInfo)">修改卡密码</button>
							<button type="button" class="btn btn-info btn-xs" ng-click="bindUser()">设置用户信息</button>
						</td>
					</tr>
				</tbody>
			</table>
		</div>

	</div>
</div>